
'use strict';

const express = require('express');
const router = express.Router();

const permission_check = require('../api/admin/web_permission_check.js');
const login_check_admin = require('../api/admin/web_login_check.js');

// 首页数据
router.post('/index_revenue_data', login_check_admin, permission_check(90101), require('../api/home_page/main.js'));

// 首页今日服务客户
router.post('/index_today_server_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_serv_order.js'));

// 首页今日新增合伙人列表
router.post('/index_today_partner_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_zjc_recharge.js'));

// 首页今日新增客户列表
router.post('/index_today_customer_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_add_customer.js'));

// 首页今日新增下级列表
router.post('/index_today_one_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_add_sclient.js'));

// 首页今日分红列表
router.post('/index_today_bouns_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_dis_fee.js'));

// 首页今日待服务订单列表
router.post('/index_today_order_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_need_serv_order.js'));

// 首页今日待发货订单
router.post('/index_today_deliver_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_goods_need_send.js'));

// 首页今日生日客户
router.post('/index_today_birthday_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_birthday_customer.js'));

// 首页获取30天生日客户列表
router.post('/index_thirty_birthday_list', login_check_admin, permission_check(90101), require('../api/home_page/query_30_birthday_customer.js'));

// 首页 获取90天合同快到期员工列表
router.post('/index_ninety_staff_list', login_check_admin, permission_check(90101), require('../api/home_page/query_contract_ninety_end.js'));

// 首页 获取待审核员工列表
router.post('/index_staff_list', login_check_admin, permission_check(90101), require('../api/home_page/query_today_check_staff.js'));

// 获取60天快过期美丽金列表
router.post('/index_sixty_beauty_list', login_check_admin, permission_check(90101), require('../api/home_page/query_zjc_sixty_down.js'));

// 获取30天快过期项目订单列表
router.post('/getThirtyOrder', login_check_admin, require('../api/home_page/query_30_project_list.js'));

module.exports = router;
